package com.example.demo2.service.impl;

import com.example.demo2.dao.impl.UserDaoImpl;
import com.example.demo2.model.User;
import com.example.demo2.service.UserService;

public class UserServiceImpl implements UserService {
    @Override
    public User userLogin(String username, String password) {
        UserDaoImpl userDao = new UserDaoImpl();
        User userLogin = userDao.findByUserNameAndPassword(username, password);
        //密码加密和比较
        //记录日志
        return userLogin;
    }
}
